<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue@next"></script>
    <title>Document</title>
</head>
<body>
    <div id="root"></div>
</body>
<script>
   const app= Vue.createApp({
       setup() {
           const {ref,computed}=Vue
           const count=ref(0)
           const handleClick=()=>{
               count.value=1
           }
           const countapp=computed({
               get:()=>{
                   return count.value+5
               },
               set:(param)=>{
                   count.value=param-5
               }
           })
           setTimeout(() => {
               countapp.value=100
           }, 2000);
           return {
               count,
               handleClick,
               countapp
           }
       },
        template:`<div><span @click="handleClick">{{count}}--{{countapp}}</span></div>`
    })
    const vm=app.mount('#root')
</script>
</html>